import login from '../components/login.vue';
import index from '../components/index.vue';
import logo from '../components/logo.vue';
import role from '../components/system/role.vue';
import loginLog from "../components/system/loginLog.vue"
import branch from "../components/system/branch.vue"
import department from "@/components/system/department.vue";
import userinfo from "@/components/system/userinfo.vue";
// 路由页面地址
const routes = [
    {path: "/", redirect: "/login"},// 默认
    {path: "/login", component: login },
    {path: "/", redirect: "/index"},
    {path: "/index", component: index,
        children:[
            {path: "/index", redirect: "/logo"},
            {path: "/logo", component: logo },
            {path: "/role", component: role },
            {path: "/loginLog", component: loginLog},
            {path: "/branch", component: branch},
            {path: "/department", component: department},
            {path:"/userinfo",component: userinfo},
            {path:"/3",component: 3}
        ]}
]

export default routes;